/**
 * Free software.
 */

package org.nanhill.commons.lang;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-11-5
 */
public class MultiThreadRunner {
	private Runnable[] runnables;

	/**
	 * @param runs
	 */
	public MultiThreadRunner(Runnable[] runs) {
		this.runnables = runs;
	}

	/**
	 * 
	 */
	public void runRunnables() {
		for (int i = 0; i < runnables.length; i++) {
			new Thread(runnables[i]).start();
		}

	}

}
